package henry;

/**
 * @Author: hujian
 * @Date: 2019/10/7 16:45
 * @Description: 不引入第三个数交换两个变量
 */
public class ChangeNumber {

    public static void main(String[] args) {
        int a = 5;
        int b = 10;
        a = a ^ b;
        b = a ^ b;
        a = a ^ b;
        System.out.println("a:" + a + "\n" + "b:" + b);
    }
}

